import Components from 'unplugin-vue-components/vite'
import {
    ElementPlusResolver,
    AntDesignVueResolver,
    VantResolver,
    NaiveUiResolver
} from 'unplugin-vue-components/resolvers'
import { componentsSource } from "../../env/config"
export default function createComponentsImport() {
    return Components({
        dirs: componentsSource,
        resolvers: [
            AntDesignVueResolver({importStyle: true, resolveIcons: true}),
            ElementPlusResolver(),
            VantResolver(),
            NaiveUiResolver()
        ]
    })
}
